package com.infore.authorityManagement.entity;

import java.io.Serializable;
import java.util.Date;

import javax.persistence.Column;
import javax.persistence.Entity;
import javax.persistence.Id;
import javax.persistence.Table;

/**  
* @ClassName: CurrentUserInfo  
* @Description: 当前用户实体类  
* @author 谭红波  
* @date 2017年9月9日  
*/ 
@Entity
@Table(name = "sys_currentuserinfo")
public class CurrentUserInfo implements Serializable {
    private static final long serialVersionUID = 1L;
    
    @Id
    @Column(name = "CURRENT_ID")
    private String currntId;            //主键id
    
    @Column(name = "USER_ID")
    private String userId;        //用户id
    
    @Column(name = "USER_NAME")
    private String userName;    //用户名称
    
    @Column(name = "USER_ACCOUNT")
    private String userAccount;    //账号  ，唯一,必填
    
    @Column(name = "token")
    private String token;                //令牌
    
    @Column(name = "identify")
    private Integer identify;            //用户状态（正常/已注销）
    
    @Column(name = "effectivetime")
    private Integer effectivetime;        //有效时间长度(比如20分钟)
    
    @Column(name = "failuretime")
    private Date failuretime;        //失效时间(认证成功20分钟后)
    
    @Column(name = "IS_ADMIN")
    private Integer admin;            //是否是管理员
    
    @Column(name = "APP_UUID")
    private String appUUID;             //手机UUID
    
    public String getCurrntId() {
        return currntId;
    }
    public void setCurrntId(String currntId) {
        this.currntId = currntId;
    }
    public String getUserId() {
        return userId;
    }
    public void setUserId(String userId) {
        this.userId = userId;
    }
    public String getUserName() {
        return userName;
    }
    public void setUserName(String userName) {
        this.userName = userName;
    }
    public String getUserAccount() {
        return userAccount;
    }
    public void setUserAccount(String userAccount) {
        this.userAccount = userAccount;
    }
    public String getToken() {
        return token;
    }
    public void setToken(String token) {
        this.token = token;
    }
    public Integer getIdentify() {
        return identify;
    }
    public void setIdentify(Integer identify) {
        this.identify = identify;
    }
    public Integer getEffectivetime() {
        return effectivetime;
    }
    public void setEffectivetime(Integer effectivetime) {
        this.effectivetime = effectivetime;
    }
    public Date getFailuretime() {
        return failuretime;
    }
    public void setFailuretime(Date failuretime) {
        this.failuretime = failuretime;
    }
    public Integer getAdmin() {
        return admin;
    }
    public void setAdmin(Integer admin) {
        this.admin = admin;
    }
    public String getAppUUID() {
        return appUUID;
    }
    public void setAppUUID(String appUUID) {
        this.appUUID = appUUID;
    }
    @Override
    public String toString() {
        return "CurrentUserInfo [currntId=" + currntId + ", userId=" + userId + ", userName=" + userName + ", userAccount=" + userAccount
                + ", token=" + token + ", identify=" + identify + ", effectivetime=" + effectivetime + ", failuretime=" + failuretime
                + ", admin=" + admin + ", appUUID=" + appUUID + "]";
    }
    
}
